﻿using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace AutomationCommand
{
    public  class wb_brws_got : BasiCommand
    {
        [JsonProperty("url")]
        public string Url { get; set; }

        [JsonProperty("goto_new")]
        public long GotoNew { get; set; }

        [JsonProperty("close_old")]
        public long CloseOld { get; set; }

        public wb_brws_got()
        {
            FunctionType = "wb_brws_got";
            OtherName = "转跳网址";
            SuccessJump = -1;
            FailureJump = -1;
            Url = "";
            GotoNew = -1;
            CloseOld = -1;
        }

        public  bool Execute(JObject command)
        {
            // 在这里编写执行命令的逻辑
            // 返回执行结果
            return true; // 假设此处始终成功
        }
    }
}
